package com.guigu.dealservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.dealservice.entity.EquipmentReservation;
import com.guigu.dealservice.mapper.EquipmentReservationMapper;
import com.guigu.dealservice.service.EquipmentReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author janecraft
 * @since 2025-10-17
 */
@Service
public class EquipmentReservationServiceImpl extends ServiceImpl<EquipmentReservationMapper, EquipmentReservation> implements EquipmentReservationService {

   @Autowired
   private EquipmentReservationMapper equipmentReservationMapper;
    @Override
    public EquipmentReservation selectEquipmentReservationById(Long id) {
        QueryWrapper<EquipmentReservation> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("equipment_id",id);
        EquipmentReservation list = equipmentReservationMapper.selectOne(queryWrapper);
        return list;
    }
}
